bitkeeper revision 1.601 (3fb3b29bWxzXUo39xGgX9TIpE757xg)
authorbr260@laudney.cl.cam.ac.uk <br260@laudney.cl.cam.ac.uk>
Thu, 13 Nov 2003 16:34:35 +0000 (16:34 +0000)
committerbr260@laudney.cl.cam.ac.uk <br260@laudney.cl.cam.ac.uk>
Thu, 13 Nov 2003 16:34:35 +0000 (16:34 +0000)
Cleanup.

tools/internal/dom0_defs.h

index 0c0c4080dded27588c2447cfa025f8af2cf8df4c..0aacbd732b8d3b8186a0b9f2b58240ad2a6869e1 100644 (file)
@@ -51,7 +51,7 @@ static inline int do_privcmd(unsigned int cmd, unsigned long data)
         PERROR("Error when executing privileged control ioctl");
 #endif
         close(fd);
-        return -1;
+        return ret;
     }
 
     close(fd);
@@ -79,7 +79,7 @@ static inline int do_dom0_op(dom0_op_t *op)
         goto out1;
     }
 
-    if ( do_xen_hypercall(&hypercall) < 0 )
+    if ( (ret = do_xen_hypercall(&hypercall)) < 0 )
     {
         if ( errno == EACCES )
             fprintf(stderr, "Dom0 operation failed -- need to"
@@ -107,7 +107,7 @@ static inline int do_network_op(network_op_t *op)
         goto out1;
     }
 
-    if ( do_xen_hypercall(&hypercall) < 0 )
+    if ( (ret = do_xen_hypercall(&hypercall)) < 0 )
         goto out2;
 
     ret = 0;